﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
using aoprinter.Model;

namespace aoprinter.Draw
{
    class SingleLineOper : ILineTypeOper
    {
        public GraphicsPath DrawLine(PointF point1, PointF point2, Dictionary<string, string> parameters)
        {
            GraphicsPath path = new GraphicsPath();
            path.AddLine(point1, point2);
            return path;
        }

        public GraphicsPath DrawRect(RectangleF rect, Dictionary<string, string> parameters)
        {
            GraphicsPath path = new GraphicsPath();
            path.AddRectangle(rect);
            return path;
        }
    }
}
